package com.taobao.api.request;

import com.taobao.api.internal.util.RequestCheckUtils;
import java.util.Map;

import com.taobao.api.ApiRuleException;
import com.taobao.api.BaseTaobaoRequest;
import com.taobao.api.internal.util.TaobaoHashMap;

import com.taobao.api.response.TmallNrOrderLogisInfoResponse;

/**
 * TOP API: tmall.nr.order.logis.info request
 * 
 * @author top auto create
 * @since 1.0, 2019.01.04
 */
public class TmallNrOrderLogisInfoRequest extends BaseTaobaoRequest<TmallNrOrderLogisInfoResponse> {
	
	

	/** 
	* 来源标识
	 */
	private String channel;

	/** 
	* 主订单号
	 */
	private String mainOrderIds;

	/** 
	* 卖家ID
	 */
	private Long sellerId;

	public void setChannel(String channel) {
		this.channel = channel;
	}

	public String getChannel() {
		return this.channel;
	}

	public void setMainOrderIds(String mainOrderIds) {
		this.mainOrderIds = mainOrderIds;
	}

	public String getMainOrderIds() {
		return this.mainOrderIds;
	}

	public void setSellerId(Long sellerId) {
		this.sellerId = sellerId;
	}

	public Long getSellerId() {
		return this.sellerId;
	}

	public String getApiMethodName() {
		return "tmall.nr.order.logis.info";
	}

	public Map<String, String> getTextParams() {		
		TaobaoHashMap txtParams = new TaobaoHashMap();
		txtParams.put("channel", this.channel);
		txtParams.put("main_order_ids", this.mainOrderIds);
		txtParams.put("seller_id", this.sellerId);
		if(this.udfParams != null) {
			txtParams.putAll(this.udfParams);
		}
		return txtParams;
	}

	public Class<TmallNrOrderLogisInfoResponse> getResponseClass() {
		return TmallNrOrderLogisInfoResponse.class;
	}

	public void check() throws ApiRuleException {
		RequestCheckUtils.checkNotEmpty(channel, "channel");
		RequestCheckUtils.checkNotEmpty(mainOrderIds, "mainOrderIds");
		RequestCheckUtils.checkMaxListSize(mainOrderIds, 20, "mainOrderIds");
		RequestCheckUtils.checkNotEmpty(sellerId, "sellerId");
	}
	

}